

export function getStorage(key) {
  let list = sessionStorage.getItem(key)
  if (list) {
    return JSON.parse(list)
  }
  return  []
}

export function setStorage(key, val) {
  val = JSON.stringify(val)
  return sessionStorage[key] = val
}

export function removeStorage(key) {
  return sessionStorage.removeItem(key)
}
